//
//  NotificationContext.swift
//  mlz
//
//  Created by 吕凌 on 2018/5/17.
//  Copyright © 2018年 吕凌. All rights reserved.
//

import Foundation

class NotificationContext {
    
    static var context: [String:Any] = [:]
    
    static func setUserInfo(params: [String:Any]) {
        context["userInfo"] = params
    }
    
    static func getUserInfo() -> [String:Any]? {
        let params = context["userInfo"]
        context.removeValue(forKey: "userInfo")
        if(params == nil) {
            return nil
        }
        return params as? [String : Any]
    }
    
}
